import Vue from 'vue'
import Router from 'vue-router'
// import HelloWorld from '@/components/HelloWorld'

// import Registered from '@/components/registered'
// import Test from '@/components/test'
// import Test1 from '@/components/test1'
// import Login from '@/components/login'
// import Home from '@/components/home'
// import Tabbar from '@/components/tabbar'
// import Postdetails from '@/components/postdetails'
// import Mymsg from '@/components/mymsg'
// import Post from '@/components/post'
// import follow from '@/components/follow'

// import list from '@/components/list'
// import chathome from '@/components/chathome'
// import chatlist from '@/components/chatlist'
// import chatload from '@/components/chatload'
const Tabbar = () => import('@/components/tabbar')
const Home = () => import('@/components/home')

const Registered = () => import('@/components/registered')
const Login = () => import('@/components/login')
const Forgetpsw = () => import('@/components/forgetpsw')
const Changepsw = () => import('@/components/changepsw')

const follow = () => import('@/components/follow')
const Mymsg = () => import('@/components/mymsg')
const Test = () => import('@/components/test')
const Test1 = () => import('@/components/test1')

const Post = () => import('@/components/post')
const Postdetails = () => import('@/components/postdetails')

const Hollowdetails = () => import('@/components/Hollowdetails')
const Hollow = () => import('@/components/hollow')

const Wd = () => import('@/components/wd')
const Mypost = () => import('@/components/mypost')
const Mysd = () => import('@/components/mysd')
const Likeuser = () => import('@/components/likeuser')
const Mydz = () => import('@/components/mydz')
const Mypl = () => import('@/components/mypl')
const Mysz = () => import('@/components/mysz')
const Mylook = () => import('@/components/mylook')
const Mygz = () => import('@/components/mygz')
const Myfs = () => import('@/components/myfs')

const Nd = () => import('@/components/nd')

const Chatbody = () => import('@/components/chatbody')
const Chatlist = () => import('@/components/chatlist')

Vue.use(Router)

const router = new Router({
  routes: [
    {
      path: '/',
      name: 'Tabbar',
      component: Tabbar,
      redirect:'/Home',
      children:[
        {path:'/Hollow',component:Hollow,},
        {path:'/Home',
         component:Home,
         redirect:'/Post/all',
         children:[
          {path:'/Post/:type',component:Post,},
          {path:'/follow',component:follow,},]
        },
        {path:'/Mymsg',
         component:Mymsg,
         redirect:'/Chatlist',
         children:[
           {path:'/Chatlist',component:Chatlist,},
          ]
        },
        {path:'/Wd',component:Wd,},
        {path:'/Nd/:id',component:Nd,},
        //
      ]
    },    
    {path:'/Postdetails/:id/:tid',name:'Postdetails',component:Postdetails,},
    {path:'/Hollowdetails/:id/:sdid',name:'Hollowdetails',component:Hollowdetails,},
    
    {path:'/Mypost',component:Mypost,},
    {path:'/Mysd',component:Mysd,},
    {path:'/Likeuser/:like/:list',component:Likeuser,},
    {path:'/Mydz',component:Mydz,},
    {path:'/Mypl',component:Mypl,},
    {path:'/Mysz',component:Mysz,},
    {path:'/Mylook',component:Mylook,},
    {path:'/Mygz',component:Mygz,},
    {path:'/Myfs',component:Myfs,},

    {path:'/Registered',component:Registered,},
    {path:'/Login',component:Login,},
    {path:'/Forgetpsw',component:Forgetpsw,},
    {path:'/Changepsw',component:Changepsw,},
    {path:'/Test1',component:Test1,},
    {path:'/Chatbody/:tid',component:Chatbody,},
    {path:'/Test/:type',component:Test,},
  ],
})



export default router;